package com.example.backend.service.impl;

import com.example.backend.mapper.ManageMapper;
import com.example.backend.pojo.Manage;
import com.example.backend.service.ManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManageServiceImpl implements ManageService {

    @Autowired
    private ManageMapper manageMapper;
    @Override
    public void register(String name, String password) {
        manageMapper.register(name,password);
    }
    @Override
    public Manage getByName(String managename) {
        return manageMapper.getByName(managename);
    }
}
